/*    */ package com.lmpop.frame.util;
/*    */ 
/*    */ import com.lmpop.frame.QueryList;
/*    */ import java.io.PrintStream;
/*    */ import java.util.Hashtable;
/*    */ import java.util.List;
/*    */ 
/*    */ public class DatebaseMgr
/*    */ {
/*    */   private QueryList queryList;
/*    */ 
/*    */   public DatebaseMgr()
/*    */   {
/* 13 */     this.queryList = new QueryList();
/*    */   }
/*    */ 
/*    */   public List getAllTables() {
/* 17 */     return this.queryList.getList("getAllTables");
/*    */   }
/*    */ 
/*    */   public String getTableKey(String table_name) {
/* 21 */     List list = this.queryList.getList("getTableKey", table_name);
/* 22 */     String key = "";
/* 23 */     if ((list != null) && (list.size() > 0)) {
/* 24 */       Hashtable kMap = (Hashtable)list.get(0);
/* 25 */       if (kMap.get("column_name") != null) key = kMap.get("column_name").toString();
/*    */     }
/* 27 */     return key;
/*    */   }
/*    */ 
/*    */   public List getTableDescList(String table_name) {
/* 31 */     return this.queryList.getList("getTableDesc", table_name);
/*    */   }
/*    */ 
/*    */   public static void main(String[] args)
/*    */   {
/* 36 */     System.out.println(new DatebaseMgr().getTableKey("news"));
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.frame.util.DatebaseMgr
 * JD-Core Version:    0.6.0
 */